<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setBundle basename="messages.messages"/>

<html>
<head>

<link rel="stylesheet" href="/Epics/jslib/global.css" />
<script src="/Epics/jslib/jquery-1.9.1.js"></script>
<script src="/Epics/jslib/jquery.validate.min.js"></script>

<script type="text/javascript">
	$(document).ready(
			function() {

				$("#inputForm").validate({
					rules : {
						title : {
							required : true
						}
					},
					messages : {
						title :{
							required:"Type title."
						}
					}
				});
			
			});
</script>

<link rel="stylesheet" href="/Epics/jslib/jquery-ui.css" />
<script src="/Epics/jslib/jquery-1.9.1.js"></script>
<script src="/Epics/jslib/jquery-ui.js"></script>
<script src="/Epics/jslib/jquery.validate.min.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="siteName"/></title>
</head>
<body>
	<%@ include file="../Template/TMainLine.jsp"%>
	<%@ include file="../Template/TMessage.jsp"%>

	<c:if test="${!empty user}">
	<form action="SCreateAlbumOut"accept-charset="UFT-8" method="post" id="inputForm">
		<table>
			<tr>
				<td>Title:</td>
				<td><input type="text" name="title" /></td>
			</tr>
			<tr>
				<td>Description:</td>
				<td><textarea name="description" rows="5" cols="40"></textarea></td>
			</tr>
			<tr>
				<td colspan="2"><input type="checkbox" name="ispublic" value="ispublic" checked/>Public</td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="CreateAlbum" /></td>
			</tr>
		</table>
	</form>
	</c:if>
</body>
</html>